import request from '@/utils/request'

// 查询我发起的审核
export function listVehicles(query) {
  return request({
    url: '/app/flow/list',
    method: 'get',
    params: query
  })
}

// 查询待我审核
export function listByMyslef(id) {
  return request({
    url: '/app/vehicles/listByMyslef/'+ id,
    method: 'get',
  })
}

// 查已通过的审核车辆
export function flowList(data) {
  return request({
    url: '/app/flow/list',
    method: 'get',
    params: data
  })
} 
// 发起审核 
export function vehicles(data) {
    return request({
      url: '/app/vehicles',
      method: 'post',
      data
    })
  } 


// 待我审核详细
export function vehiclesQuery(flowId) {
  return request({
    url: '/app/vehicles/'+flowId,
    method: 'get',
  })
}

// 我的审核提交
export function myVehicles(data) {
  return request({
    url: '/app/vehicles',
    method: 'put',
    data
  })
}
// 批准出矿
export function vehiclesUpdate(data) {
  return request({
    url: '/app/vehicles/update ',
    method: 'post',
    data
  })
}
